﻿//
// Created: 2018/8/14
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.Admin
{
    public class  AdminUser:IEntity
    {
    
       ///<summary>
       ///
       ///<summary>
       public string ID  { get; set; }
        ///<summary>
        ///
        ///<summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int UserID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int UserCode  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string UserName  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Password  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Mobile  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Email  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime CreateTime  { get; set; }
        [NotMapped]
        public string strCreateTime {
            get {
                return CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
       ///<summary>
       ///
       ///<summary>
        public string Creator  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime UpdateTime  { get; set; }
        [NotMapped]
        public string strUpdateTime
        {
            get
            {
                return UpdateTime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
        ///<summary>
        ///
        ///<summary>
        public string Updator  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int Enable  { get; set; } 
         
    
       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}